package com.rd.student.jiaji.class4.suyan.zrrd.Read;

public class GoodTest {
    public static void main(String[] args) {
        Good arr[]=new Good[3];
        Good g1=new Good("001","华为",6888,100);
        Good g2=new Good("002","保温杯",68,200);
        Good g3=new Good("003","平板",6888,300);
        arr[0]=g1;
        arr[1]=g2;
        arr[2]=g3;
        for (int i=0;i<arr.length;i++){
            Good a=arr[i];
            System.out.println(a.getId()+","+a.getName()+","+a.getPrice()+","+a.getCount());
        }
    }

}
